<!DOCTYPE html>
<head>

</head>
<body>
<div style="padding-left: 50px;">
    <div class="lh30" style="font-size: 20px;">您正在修改账号密码</div>
    <form action="" method="post" id="mpForm">
        <label for="oldPwd" class=" block">
            <div class="label" style="">请输入原密码</div>
            <input class="eftext " name="oldpwd" id="oldPwd" type="password"  required>
        </label>
        <label for="pwd" class=" block">
            <div class="label" style="">请输入新密码</div>
            <input class="eftext " name="pwd" id="pwd" type="password" required>
        </label>
        <label for="rePwd" class=" block">
            <div class="label" style="">确认新密码</div>
            <input class="eftext " name="repwd" id="rePwd"  type="password" required>
        </label>
        <div class="text-right" style="margin-top: 20px;width:300px;">
            <a id="mpSave" href="#" >保存</a>
        </div>
    </form>
</div>

<script src="/userManage/userManage.js"></script>
<script>
    $('#oldPwd').textbox({
        width:300,
        height:30
    })
    $('#pwd').textbox({
        validType:'length[6,30]',
        width:300,
        height:30
    })
    $('#rePwd').textbox({
        validType:'equal["#pwd"]',
        width:300,
        height:30
    })
    $('#mpSave').linkbutton({
        iconCls:'icon-ok',
        onClick:function(){
            $('#mpForm').form('submit',{
                url:'/auth/users/modifyPwd',
                onSubmit: function(){
                    return $(this).form('validate');
                },
                success:function(data){
                    var result = eval('(' + data + ')');
                    if(result.status == '1'){

                        showMsg('修改密码成功！');
                    }else{
                        showMsg('修改密码失败！');
                    }
                }
            })
        }
    })
</script>
</body>